/*
 * Copyright 2007-2008, www.jsemantic.org, www.adolfoestevez.com,
 * http://semanticj2ee.blogspot.com/ 
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jservicerules.support.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * <p>
 * ExternalContext annotation class. <br>
 * 
 * <p>
 * This annotation class must be used in combination either of
 * {@link SemanticService} or {@link SemanticFactory}. <br>
 * 
 * It represents an  External Context (Spring based) than can be set up for the
 * SemanticSession. The only parameter needed is the location of the spring
 * context file(class path notation).<br>
 * 
 * <p>
 * Example.<br>
 * 
 * <code>@SpringExternalContext(contextFile="org/jsemantic/support/examples/energy/services.xml")</code>
 */
@Retention(RetentionPolicy.RUNTIME)
@Target( { ElementType.TYPE, ElementType.FIELD })
public @interface SpringExternalContext {

	/**
	 * Context file.
	 * 
	 * @return the string
	 */
	public String contextFile();

}
